.class public Lcom/glympse/platform/common/UrlParser;
.super Ljava/lang/Object;
.source "UrlParser.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/glympse/platform/common/UrlParser$ParsedRecipient;
    }
.end annotation


# instance fields
.field public m_eView:Lcom/glympse/android/glympse/Glympse$EViews;

.field private m_listParsedRecipients:Lcom/glympse/platform/GVector$ParsedRecipients;

.field public m_listTicketIds:Lcom/glympse/platform/GVector$Longs;

.field private m_nDuration:I

.field private m_oTicket:Lcom/glympse/platform/common/Ticket;

.field private m_strDestAddr:Ljava/lang/String;

.field private m_strDestName:Ljava/lang/String;

.field private m_strDestType:Ljava/lang/String;

.field private m_strMsgText:Ljava/lang/String;

.field private m_strSource:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 21
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 23
    iput-object v1, p0, Lcom/glympse/platform/common/UrlParser;->m_listTicketIds:Lcom/glympse/platform/GVector$Longs;

    .line 24
    iput-object v1, p0, Lcom/glympse/platform/common/UrlParser;->m_listParsedRecipients:Lcom/glympse/platform/GVector$ParsedRecipients;

    .line 26
    const/4 v0, -0x1

    iput v0, p0, Lcom/glympse/platform/common/UrlParser;->m_nDuration:I

    .line 27
    iput-object v1, p0, Lcom/glympse/platform/common/UrlParser;->m_strSource:Ljava/lang/String;

    .line 28
    iput-object v1, p0, Lcom/glympse/platform/common/UrlParser;->m_strDestType:Ljava/lang/String;

    .line 29
    iput-object v1, p0, Lcom/glympse/platform/common/UrlParser;->m_strDestAddr:Ljava/lang/String;

    .line 30
    iput-object v1, p0, Lcom/glympse/platform/common/UrlParser;->m_strDestName:Ljava/lang/String;

    .line 31
    iput-object v1, p0, Lcom/glympse/platform/common/UrlParser;->m_strMsgText:Ljava/lang/String;

    .line 32
    iput-object v1, p0, Lcom/glympse/platform/common/UrlParser;->m_oTicket:Lcom/glympse/platform/common/Ticket;

    .line 34
    sget-object v0, Lcom/glympse/android/glympse/Glympse$EViews;->Unknown:Lcom/glympse/android/glympse/Glympse$EViews;

    iput-object v0, p0, Lcom/glympse/platform/common/UrlParser;->m_eView:Lcom/glympse/android/glympse/Glympse$EViews;

    .line 21
    return-void
.end method

.method private GetParsedRecipient(I)Lcom/glympse/platform/common/UrlParser$ParsedRecipient;
    .locals 4
    .parameter "nIndex"

    .prologue
    .line 551
    iget-object v3, p0, Lcom/glympse/platform/common/UrlParser;->m_listParsedRecipients:Lcom/glympse/platform/GVector$ParsedRecipients;

    if-nez v3, :cond_0

    .line 553
    new-instance v3, Lcom/glympse/platform/GVector$ParsedRecipients;

    invoke-direct {v3}, Lcom/glympse/platform/GVector$ParsedRecipients;-><init>()V

    iput-object v3, p0, Lcom/glympse/platform/common/UrlParser;->m_listParsedRecipients:Lcom/glympse/platform/GVector$ParsedRecipients;

    .line 557
    :cond_0
    iget-object v3, p0, Lcom/glympse/platform/common/UrlParser;->m_listParsedRecipients:Lcom/glympse/platform/GVector$ParsedRecipients;

    invoke-virtual {v3}, Lcom/glympse/platform/GVector$ParsedRecipients;->elements()Ljava/util/Enumeration;

    move-result-object v0

    .local v0, iter:Ljava/util/Enumeration;
    :cond_1
    invoke-interface {v0}, Ljava/util/Enumeration;->hasMoreElements()Z

    move-result v3

    if-nez v3, :cond_2

    .line 569
    new-instance v1, Lcom/glympse/platform/common/UrlParser$ParsedRecipient;

    invoke-direct {v1, p1}, Lcom/glympse/platform/common/UrlParser$ParsedRecipient;-><init>(I)V

    .line 572
    .local v1, oParsedRecipient:Lcom/glympse/platform/common/UrlParser$ParsedRecipient;
    iget-object v3, p0, Lcom/glympse/platform/common/UrlParser;->m_listParsedRecipients:Lcom/glympse/platform/GVector$ParsedRecipients;

    invoke-virtual {v3, v1}, Lcom/glympse/platform/GVector$ParsedRecipients;->addElement(Ljava/lang/Object;)V

    move-object v3, v1

    .line 575
    .end local v1           #oParsedRecipient:Lcom/glympse/platform/common/UrlParser$ParsedRecipient;
    :goto_0
    return-object v3

    .line 559
    :cond_2
    invoke-interface {v0}, Ljava/util/Enumeration;->nextElement()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/glympse/platform/common/UrlParser$ParsedRecipient;

    .line 562
    .local v2, oParsedRecipientCur:Lcom/glympse/platform/common/UrlParser$ParsedRecipient;
    iget v3, v2, Lcom/glympse/platform/common/UrlParser$ParsedRecipient;->m_nIndex:I

    if-ne v3, p1, :cond_1

    move-object v3, v2

    .line 564
    goto :goto_0
.end method


# virtual methods
.method public GetSource()Ljava/lang/String;
    .locals 1

    .prologue
    .line 379
    iget-object v0, p0, Lcom/glympse/platform/common/UrlParser;->m_strSource:Ljava/lang/String;

    return-object v0
.end method

.method public GetTicket()Lcom/glympse/platform/common/Ticket;
    .locals 11

    .prologue
    const/4 v10, 0x5

    const/4 v8, 0x2

    const/4 v9, 0x0

    .line 386
    iget-object v6, p0, Lcom/glympse/platform/common/UrlParser;->m_listParsedRecipients:Lcom/glympse/platform/GVector$ParsedRecipients;

    if-eqz v6, :cond_0

    .line 389
    iget-object v6, p0, Lcom/glympse/platform/common/UrlParser;->m_listParsedRecipients:Lcom/glympse/platform/GVector$ParsedRecipients;

    new-instance v7, Lcom/glympse/platform/common/UrlParser$ParsedRecipient$Comparator;

    invoke-direct {v7}, Lcom/glympse/platform/common/UrlParser$ParsedRecipient$Comparator;-><init>()V

    invoke-virtual {v6, v7}, Lcom/glympse/platform/GVector$ParsedRecipients;->Sort(Lcom/glympse/platform/GComparator;)V

    .line 392
    iget-object v6, p0, Lcom/glympse/platform/common/UrlParser;->m_listParsedRecipients:Lcom/glympse/platform/GVector$ParsedRecipients;

    invoke-virtual {v6}, Lcom/glympse/platform/GVector$ParsedRecipients;->elements()Ljava/util/Enumeration;

    move-result-object v2

    .local v2, iter:Ljava/util/Enumeration;
    :goto_0
    invoke-interface {v2}, Ljava/util/Enumeration;->hasMoreElements()Z

    move-result v6

    if-nez v6, :cond_a

    .line 446
    iput-object v9, p0, Lcom/glympse/platform/common/UrlParser;->m_listParsedRecipients:Lcom/glympse/platform/GVector$ParsedRecipients;

    .line 450
    .end local v2           #iter:Ljava/util/Enumeration;
    :cond_0
    iget v6, p0, Lcom/glympse/platform/common/UrlParser;->m_nDuration:I

    if-ltz v6, :cond_2

    .line 453
    iget-object v6, p0, Lcom/glympse/platform/common/UrlParser;->m_oTicket:Lcom/glympse/platform/common/Ticket;

    if-nez v6, :cond_1

    .line 455
    new-instance v6, Lcom/glympse/platform/common/Ticket;

    invoke-direct {v6}, Lcom/glympse/platform/common/Ticket;-><init>()V

    iput-object v6, p0, Lcom/glympse/platform/common/UrlParser;->m_oTicket:Lcom/glympse/platform/common/Ticket;

    .line 458
    :cond_1
    iget-object v6, p0, Lcom/glympse/platform/common/UrlParser;->m_oTicket:Lcom/glympse/platform/common/Ticket;

    iget v7, p0, Lcom/glympse/platform/common/UrlParser;->m_nDuration:I

    iput v7, v6, Lcom/glympse/platform/common/Ticket;->m_nDurationMs:I

    .line 461
    const/4 v6, -0x1

    iput v6, p0, Lcom/glympse/platform/common/UrlParser;->m_nDuration:I

    .line 465
    :cond_2
    iget-object v6, p0, Lcom/glympse/platform/common/UrlParser;->m_strDestType:Ljava/lang/String;

    if-nez v6, :cond_3

    iget-object v6, p0, Lcom/glympse/platform/common/UrlParser;->m_strDestAddr:Ljava/lang/String;

    if-nez v6, :cond_3

    iget-object v6, p0, Lcom/glympse/platform/common/UrlParser;->m_strDestName:Ljava/lang/String;

    if-eqz v6, :cond_7

    .line 468
    :cond_3
    iget-object v6, p0, Lcom/glympse/platform/common/UrlParser;->m_strDestType:Ljava/lang/String;

    invoke-static {v6}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v6

    if-nez v6, :cond_4

    iget-object v6, p0, Lcom/glympse/platform/common/UrlParser;->m_strDestType:Ljava/lang/String;

    const-string v7, "geo"

    invoke-virtual {v6, v7}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_16

    .line 471
    :cond_4
    iget-object v6, p0, Lcom/glympse/platform/common/UrlParser;->m_strDestAddr:Ljava/lang/String;

    invoke-static {v6}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v6

    if-nez v6, :cond_15

    .line 473
    new-instance v4, Lcom/glympse/platform/common/Place;

    invoke-direct {v4}, Lcom/glympse/platform/common/Place;-><init>()V

    .line 476
    .local v4, oPlace:Lcom/glympse/platform/common/Place;
    iget-object v6, p0, Lcom/glympse/platform/common/UrlParser;->m_strDestAddr:Ljava/lang/String;

    invoke-static {v6}, Lcom/glympse/platform/Platform;->ParseMpt(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v0

    .line 477
    .local v0, aParts:[Ljava/lang/String;
    array-length v6, v0

    if-ne v8, v6, :cond_5

    .line 479
    const/4 v6, 0x0

    aget-object v6, v0, v6

    invoke-static {v6}, Lcom/glympse/platform/common/Helpers;->ParseDouble(Ljava/lang/String;)D

    move-result-wide v6

    iput-wide v6, v4, Lcom/glympse/platform/common/Place;->m_dLatitude:D

    .line 480
    const/4 v6, 0x1

    aget-object v6, v0, v6

    invoke-static {v6}, Lcom/glympse/platform/common/Helpers;->ParseDouble(Ljava/lang/String;)D

    move-result-wide v6

    iput-wide v6, v4, Lcom/glympse/platform/common/Place;->m_dLongitude:D

    .line 484
    :cond_5
    invoke-virtual {v4}, Lcom/glympse/platform/common/Place;->HasLocation()Z

    move-result v6

    if-eqz v6, :cond_14

    .line 487
    iget-object v6, p0, Lcom/glympse/platform/common/UrlParser;->m_strDestName:Ljava/lang/String;

    if-eqz v6, :cond_13

    .line 489
    iget-object v6, p0, Lcom/glympse/platform/common/UrlParser;->m_strDestName:Ljava/lang/String;

    iput-object v6, v4, Lcom/glympse/platform/common/Place;->m_strName:Ljava/lang/String;

    .line 499
    :goto_1
    iget-object v6, p0, Lcom/glympse/platform/common/UrlParser;->m_oTicket:Lcom/glympse/platform/common/Ticket;

    if-nez v6, :cond_6

    .line 501
    new-instance v6, Lcom/glympse/platform/common/Ticket;

    invoke-direct {v6}, Lcom/glympse/platform/common/Ticket;-><init>()V

    iput-object v6, p0, Lcom/glympse/platform/common/UrlParser;->m_oTicket:Lcom/glympse/platform/common/Ticket;

    .line 505
    :cond_6
    iget-object v6, p0, Lcom/glympse/platform/common/UrlParser;->m_oTicket:Lcom/glympse/platform/common/Ticket;

    iput-object v4, v6, Lcom/glympse/platform/common/Ticket;->m_oDestination:Lcom/glympse/platform/common/Place;

    .line 523
    .end local v0           #aParts:[Ljava/lang/String;
    .end local v4           #oPlace:Lcom/glympse/platform/common/Place;
    :goto_2
    iput-object v9, p0, Lcom/glympse/platform/common/UrlParser;->m_strDestType:Ljava/lang/String;

    .line 524
    iput-object v9, p0, Lcom/glympse/platform/common/UrlParser;->m_strDestAddr:Ljava/lang/String;

    .line 525
    iput-object v9, p0, Lcom/glympse/platform/common/UrlParser;->m_strDestName:Ljava/lang/String;

    .line 529
    :cond_7
    iget-object v6, p0, Lcom/glympse/platform/common/UrlParser;->m_strMsgText:Ljava/lang/String;

    if-eqz v6, :cond_9

    .line 532
    iget-object v6, p0, Lcom/glympse/platform/common/UrlParser;->m_oTicket:Lcom/glympse/platform/common/Ticket;

    if-nez v6, :cond_8

    .line 534
    new-instance v6, Lcom/glympse/platform/common/Ticket;

    invoke-direct {v6}, Lcom/glympse/platform/common/Ticket;-><init>()V

    iput-object v6, p0, Lcom/glympse/platform/common/UrlParser;->m_oTicket:Lcom/glympse/platform/common/Ticket;

    .line 537
    :cond_8
    iget-object v6, p0, Lcom/glympse/platform/common/UrlParser;->m_oTicket:Lcom/glympse/platform/common/Ticket;

    iget-object v7, p0, Lcom/glympse/platform/common/UrlParser;->m_strMsgText:Ljava/lang/String;

    iput-object v7, v6, Lcom/glympse/platform/common/Ticket;->m_strMessage:Ljava/lang/String;

    .line 540
    iput-object v9, p0, Lcom/glympse/platform/common/UrlParser;->m_strMsgText:Ljava/lang/String;

    .line 544
    :cond_9
    iget-object v6, p0, Lcom/glympse/platform/common/UrlParser;->m_oTicket:Lcom/glympse/platform/common/Ticket;

    return-object v6

    .line 394
    .restart local v2       #iter:Ljava/util/Enumeration;
    :cond_a
    invoke-interface {v2}, Ljava/util/Enumeration;->nextElement()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/glympse/platform/common/UrlParser$ParsedRecipient;

    .line 397
    .local v3, oParsedRecipientCur:Lcom/glympse/platform/common/UrlParser$ParsedRecipient;
    const/4 v1, 0x0

    .line 398
    .local v1, eRecipientType:I
    iget-object v6, v3, Lcom/glympse/platform/common/UrlParser$ParsedRecipient;->m_strType:Ljava/lang/String;

    invoke-static {v6}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v6

    if-nez v6, :cond_b

    .line 400
    iget-object v6, v3, Lcom/glympse/platform/common/UrlParser$ParsedRecipient;->m_strType:Ljava/lang/String;

    const-string v7, "email"

    invoke-virtual {v6, v7}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_d

    .line 402
    const/4 v1, 0x2

    .line 424
    :cond_b
    :goto_3
    if-eq v8, v1, :cond_c

    .line 425
    const/4 v6, 0x3

    if-ne v6, v1, :cond_11

    .line 426
    :cond_c
    iget-object v6, v3, Lcom/glympse/platform/common/UrlParser$ParsedRecipient;->m_strAddr:Ljava/lang/String;

    invoke-static {v6}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_11

    .line 428
    const-string v6, "UrlParser warning - ParsedRecipient has no address"

    invoke-static {v6}, Lcom/glympse/platform/common/Helpers;->Log(Ljava/lang/String;)V

    goto/16 :goto_0

    .line 404
    :cond_d
    iget-object v6, v3, Lcom/glympse/platform/common/UrlParser$ParsedRecipient;->m_strType:Ljava/lang/String;

    const-string v7, "sms"

    invoke-virtual {v6, v7}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_e

    .line 406
    const/4 v1, 0x3

    goto :goto_3

    .line 408
    :cond_e
    iget-object v6, v3, Lcom/glympse/platform/common/UrlParser$ParsedRecipient;->m_strType:Ljava/lang/String;

    const-string v7, "twitter"

    invoke-virtual {v6, v7}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_f

    .line 410
    const/4 v1, 0x4

    goto :goto_3

    .line 412
    :cond_f
    iget-object v6, v3, Lcom/glympse/platform/common/UrlParser$ParsedRecipient;->m_strType:Ljava/lang/String;

    const-string v7, "facebook"

    invoke-virtual {v6, v7}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_10

    .line 414
    const/4 v1, 0x5

    goto :goto_3

    .line 418
    :cond_10
    new-instance v6, Ljava/lang/StringBuilder;

    const-string v7, "UrlParser warning - ParsedRecipient has unknown type: "

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v7, v3, Lcom/glympse/platform/common/UrlParser$ParsedRecipient;->m_strType:Ljava/lang/String;

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {v6}, Lcom/glympse/platform/common/Helpers;->Log(Ljava/lang/String;)V

    goto/16 :goto_0

    .line 433
    :cond_11
    new-instance v5, Lcom/glympse/platform/common/Recipient;

    iget-object v6, v3, Lcom/glympse/platform/common/UrlParser$ParsedRecipient;->m_strAddr:Ljava/lang/String;

    iget-object v7, v3, Lcom/glympse/platform/common/UrlParser$ParsedRecipient;->m_strName:Ljava/lang/String;

    invoke-direct {v5, v6, v1, v7}, Lcom/glympse/platform/common/Recipient;-><init>(Ljava/lang/String;ILjava/lang/String;)V

    .line 436
    .local v5, oRecipient:Lcom/glympse/platform/common/Recipient;
    iget-object v6, p0, Lcom/glympse/platform/common/UrlParser;->m_oTicket:Lcom/glympse/platform/common/Ticket;

    if-nez v6, :cond_12

    .line 438
    new-instance v6, Lcom/glympse/platform/common/Ticket;

    invoke-direct {v6}, Lcom/glympse/platform/common/Ticket;-><init>()V

    iput-object v6, p0, Lcom/glympse/platform/common/UrlParser;->m_oTicket:Lcom/glympse/platform/common/Ticket;

    .line 442
    :cond_12
    iget-object v6, p0, Lcom/glympse/platform/common/UrlParser;->m_oTicket:Lcom/glympse/platform/common/Ticket;

    iget-object v6, v6, Lcom/glympse/platform/common/Ticket;->m_listRecipients:Lcom/glympse/platform/GVector$Recipients;

    invoke-virtual {v6, v5}, Lcom/glympse/platform/GVector$Recipients;->addElement(Ljava/lang/Object;)V

    goto/16 :goto_0

    .line 495
    .end local v1           #eRecipientType:I
    .end local v2           #iter:Ljava/util/Enumeration;
    .end local v3           #oParsedRecipientCur:Lcom/glympse/platform/common/UrlParser$ParsedRecipient;
    .end local v5           #oRecipient:Lcom/glympse/platform/common/Recipient;
    .restart local v0       #aParts:[Ljava/lang/String;
    .restart local v4       #oPlace:Lcom/glympse/platform/common/Place;
    :cond_13
    new-instance v6, Ljava/lang/StringBuilder;

    iget-wide v7, v4, Lcom/glympse/platform/common/Place;->m_dLatitude:D

    invoke-static {v7, v8, v10}, Lcom/glympse/platform/common/Helpers;->DoubleToStr(DI)Ljava/lang/String;

    move-result-object v7

    invoke-static {v7}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v7

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v7, ", "

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    iget-wide v7, v4, Lcom/glympse/platform/common/Place;->m_dLongitude:D

    invoke-static {v7, v8, v10}, Lcom/glympse/platform/common/Helpers;->DoubleToStr(DI)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    iput-object v6, v4, Lcom/glympse/platform/common/Place;->m_strName:Ljava/lang/String;

    goto/16 :goto_1

    .line 509
    :cond_14
    new-instance v6, Ljava/lang/StringBuilder;

    const-string v7, "UrlParser warning - Destination has invalid address: "

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v7, p0, Lcom/glympse/platform/common/UrlParser;->m_strDestAddr:Ljava/lang/String;

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {v6}, Lcom/glympse/platform/common/Helpers;->Log(Ljava/lang/String;)V

    goto/16 :goto_2

    .line 514
    .end local v0           #aParts:[Ljava/lang/String;
    .end local v4           #oPlace:Lcom/glympse/platform/common/Place;
    :cond_15
    const-string v6, "UrlParser warning - Destination has no address"

    invoke-static {v6}, Lcom/glympse/platform/common/Helpers;->Log(Ljava/lang/String;)V

    goto/16 :goto_2

    .line 519
    :cond_16
    new-instance v6, Ljava/lang/StringBuilder;

    const-string v7, "UrlParser warning - Unknown destination type: "

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v7, p0, Lcom/glympse/platform/common/UrlParser;->m_strDestType:Ljava/lang/String;

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {v6}, Lcom/glympse/platform/common/Helpers;->Log(Ljava/lang/String;)V

    goto/16 :goto_2
.end method

.method public ParseParameter(Ljava/lang/String;)Z
    .locals 13
    .parameter "strValue"

    .prologue
    const-wide/16 v11, 0x0

    .line 174
    const/4 v1, 0x0

    .line 176
    .local v1, fResult:Z
    const/4 v6, 0x0

    .line 177
    .local v6, nCur:I
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v7

    .line 180
    .local v7, nLength:I
    new-instance v8, Ljava/lang/StringBuffer;

    const/16 v9, 0x10

    invoke-direct {v8, v9}, Ljava/lang/StringBuffer;-><init>(I)V

    .line 181
    .local v8, strbuf:Ljava/lang/StringBuffer;
    :goto_0
    if-lt v6, v7, :cond_5

    .line 215
    :goto_1
    invoke-virtual {v8}, Ljava/lang/StringBuffer;->length()I

    move-result v9

    const/4 v10, 0x6

    if-lt v9, v10, :cond_3

    .line 218
    invoke-virtual {v8}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-static {v9}, Lcom/glympse/platform/common/Helpers;->Base32ToLong(Ljava/lang/String;)J

    move-result-wide v3

    .line 219
    .local v3, lTicketId:J
    cmp-long v9, v3, v11

    if-lez v9, :cond_3

    .line 221
    new-instance v9, Ljava/lang/StringBuilder;

    const-string v10, "URL TICKET FOUND: "

    invoke-direct {v9, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v9, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-static {v9}, Lcom/glympse/platform/common/Helpers;->Log(Ljava/lang/String;)V

    .line 224
    iget-object v9, p0, Lcom/glympse/platform/common/UrlParser;->m_listTicketIds:Lcom/glympse/platform/GVector$Longs;

    if-nez v9, :cond_0

    .line 226
    new-instance v9, Lcom/glympse/platform/GVector$Longs;

    invoke-direct {v9}, Lcom/glympse/platform/GVector$Longs;-><init>()V

    iput-object v9, p0, Lcom/glympse/platform/common/UrlParser;->m_listTicketIds:Lcom/glympse/platform/GVector$Longs;

    .line 230
    :cond_0
    iget-object v9, p0, Lcom/glympse/platform/common/UrlParser;->m_listTicketIds:Lcom/glympse/platform/GVector$Longs;

    invoke-virtual {v9}, Lcom/glympse/platform/GVector$Longs;->elements()Ljava/util/Enumeration;

    move-result-object v2

    .local v2, iter:Ljava/util/Enumeration;
    :cond_1
    invoke-interface {v2}, Ljava/util/Enumeration;->hasMoreElements()Z

    move-result v9

    if-nez v9, :cond_d

    .line 243
    :goto_2
    cmp-long v9, v3, v11

    if-lez v9, :cond_2

    .line 245
    iget-object v9, p0, Lcom/glympse/platform/common/UrlParser;->m_listTicketIds:Lcom/glympse/platform/GVector$Longs;

    new-instance v10, Ljava/lang/Long;

    invoke-direct {v10, v3, v4}, Ljava/lang/Long;-><init>(J)V

    invoke-virtual {v9, v10}, Lcom/glympse/platform/GVector$Longs;->addElement(Ljava/lang/Object;)V

    .line 248
    :cond_2
    const/4 v1, 0x1

    .line 252
    .end local v2           #iter:Ljava/util/Enumeration;
    .end local v3           #lTicketId:J
    :cond_3
    if-nez v1, :cond_4

    .line 254
    new-instance v9, Ljava/lang/StringBuilder;

    const-string v10, "UrlParser warning - Unknown value: ["

    invoke-direct {v9, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v9, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "]"

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-static {v9}, Lcom/glympse/platform/common/Helpers;->Log(Ljava/lang/String;)V

    .line 257
    :cond_4
    return v1

    .line 183
    :cond_5
    invoke-virtual {p1, v6}, Ljava/lang/String;->charAt(I)C

    move-result v0

    .line 186
    .local v0, cChar:C
    const/16 v9, 0x30

    if-lt v0, v9, :cond_6

    const/16 v9, 0x39

    if-le v0, v9, :cond_8

    :cond_6
    const/16 v9, 0x61

    if-lt v0, v9, :cond_7

    const/16 v9, 0x7a

    if-le v0, v9, :cond_8

    :cond_7
    const/16 v9, 0x41

    if-lt v0, v9, :cond_a

    const/16 v9, 0x5a

    if-gt v0, v9, :cond_a

    .line 188
    :cond_8
    invoke-virtual {v8, v0}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    .line 211
    :cond_9
    :goto_3
    add-int/lit8 v6, v6, 0x1

    goto/16 :goto_0

    .line 197
    :cond_a
    const/16 v9, 0x3a

    if-eq v0, v9, :cond_b

    const/16 v9, 0x2e

    if-eq v0, v9, :cond_b

    const/16 v9, 0x2f

    if-ne v0, v9, :cond_c

    add-int/lit8 v9, v6, 0x6

    if-ge v9, v7, :cond_c

    .line 199
    :cond_b
    const/4 v9, 0x0

    invoke-virtual {v8, v9}, Ljava/lang/StringBuffer;->setLength(I)V

    goto :goto_3

    .line 205
    :cond_c
    const/16 v9, 0x2d

    if-eq v9, v0, :cond_9

    goto/16 :goto_1

    .line 232
    .end local v0           #cChar:C
    .restart local v2       #iter:Ljava/util/Enumeration;
    .restart local v3       #lTicketId:J
    :cond_d
    invoke-interface {v2}, Ljava/util/Enumeration;->nextElement()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Ljava/lang/Long;

    .line 235
    .local v5, lTicketIdCur:Ljava/lang/Long;
    invoke-virtual {v5}, Ljava/lang/Long;->longValue()J

    move-result-wide v9

    cmp-long v9, v9, v3

    if-nez v9, :cond_1

    .line 237
    const-wide/16 v3, 0x0

    .line 238
    goto :goto_2
.end method

.method public ParseParameter(Ljava/lang/String;ILjava/lang/String;)Z
    .locals 2
    .parameter "strName"
    .parameter "nIndex"
    .parameter "strValue"

    .prologue
    const/4 v1, 0x1

    .line 289
    const-string v0, "source"

    invoke-virtual {p1, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    const-string v0, "src"

    invoke-virtual {p1, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 291
    :cond_0
    iput-object p3, p0, Lcom/glympse/platform/common/UrlParser;->m_strSource:Ljava/lang/String;

    move v0, v1

    .line 373
    :goto_0
    return v0

    .line 295
    :cond_1
    const-string v0, "rec_type"

    invoke-virtual {p1, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 297
    invoke-direct {p0, p2}, Lcom/glympse/platform/common/UrlParser;->GetParsedRecipient(I)Lcom/glympse/platform/common/UrlParser$ParsedRecipient;

    move-result-object v0

    iput-object p3, v0, Lcom/glympse/platform/common/UrlParser$ParsedRecipient;->m_strType:Ljava/lang/String;

    move v0, v1

    .line 298
    goto :goto_0

    .line 300
    :cond_2
    const-string v0, "rec_addr"

    invoke-virtual {p1, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 302
    invoke-direct {p0, p2}, Lcom/glympse/platform/common/UrlParser;->GetParsedRecipient(I)Lcom/glympse/platform/common/UrlParser$ParsedRecipient;

    move-result-object v0

    iput-object p3, v0, Lcom/glympse/platform/common/UrlParser$ParsedRecipient;->m_strAddr:Ljava/lang/String;

    move v0, v1

    .line 303
    goto :goto_0

    .line 305
    :cond_3
    const-string v0, "rec_name"

    invoke-virtual {p1, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_4

    .line 307
    invoke-direct {p0, p2}, Lcom/glympse/platform/common/UrlParser;->GetParsedRecipient(I)Lcom/glympse/platform/common/UrlParser$ParsedRecipient;

    move-result-object v0

    iput-object p3, v0, Lcom/glympse/platform/common/UrlParser$ParsedRecipient;->m_strName:Ljava/lang/String;

    move v0, v1

    .line 308
    goto :goto_0

    .line 311
    :cond_4
    const-string v0, "dur_secs"

    invoke-virtual {p1, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_5

    .line 313
    invoke-static {p3}, Lcom/glympse/platform/common/Helpers;->ParseInt(Ljava/lang/String;)I

    move-result v0

    mul-int/lit16 v0, v0, 0x3e8

    iput v0, p0, Lcom/glympse/platform/common/UrlParser;->m_nDuration:I

    move v0, v1

    .line 314
    goto :goto_0

    .line 316
    :cond_5
    const-string v0, "dur_mins"

    invoke-virtual {p1, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_6

    .line 318
    invoke-static {p3}, Lcom/glympse/platform/common/Helpers;->ParseInt(Ljava/lang/String;)I

    move-result v0

    mul-int/lit8 v0, v0, 0x3c

    mul-int/lit16 v0, v0, 0x3e8

    iput v0, p0, Lcom/glympse/platform/common/UrlParser;->m_nDuration:I

    move v0, v1

    .line 319
    goto :goto_0

    .line 321
    :cond_6
    const-string v0, "dur_hrs"

    invoke-virtual {p1, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_7

    .line 323
    invoke-static {p3}, Lcom/glympse/platform/common/Helpers;->ParseInt(Ljava/lang/String;)I

    move-result v0

    mul-int/lit8 v0, v0, 0x3c

    mul-int/lit8 v0, v0, 0x3c

    mul-int/lit16 v0, v0, 0x3e8

    iput v0, p0, Lcom/glympse/platform/common/UrlParser;->m_nDuration:I

    move v0, v1

    .line 324
    goto :goto_0

    .line 327
    :cond_7
    const-string v0, "dest_type"

    invoke-virtual {p1, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_8

    .line 329
    iput-object p3, p0, Lcom/glympse/platform/common/UrlParser;->m_strDestType:Ljava/lang/String;

    move v0, v1

    .line 330
    goto :goto_0

    .line 332
    :cond_8
    const-string v0, "dest_addr"

    invoke-virtual {p1, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_9

    .line 334
    iput-object p3, p0, Lcom/glympse/platform/common/UrlParser;->m_strDestAddr:Ljava/lang/String;

    move v0, v1

    .line 335
    goto/16 :goto_0

    .line 337
    :cond_9
    const-string v0, "dest_name"

    invoke-virtual {p1, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_a

    .line 339
    iput-object p3, p0, Lcom/glympse/platform/common/UrlParser;->m_strDestName:Ljava/lang/String;

    move v0, v1

    .line 340
    goto/16 :goto_0

    .line 343
    :cond_a
    const-string v0, "msg_text"

    invoke-virtual {p1, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_b

    .line 345
    iput-object p3, p0, Lcom/glympse/platform/common/UrlParser;->m_strMsgText:Ljava/lang/String;

    move v0, v1

    .line 346
    goto/16 :goto_0

    .line 349
    :cond_b
    const-string v0, "screen"

    invoke-virtual {p1, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_f

    .line 351
    invoke-static {p3}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_c

    .line 353
    const-string v0, "send"

    invoke-virtual {p3, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_d

    .line 355
    sget-object v0, Lcom/glympse/android/glympse/Glympse$EViews;->SendGlympse:Lcom/glympse/android/glympse/Glympse$EViews;

    iput-object v0, p0, Lcom/glympse/platform/common/UrlParser;->m_eView:Lcom/glympse/android/glympse/Glympse$EViews;

    .line 373
    :cond_c
    :goto_1
    const/4 v0, 0x0

    goto/16 :goto_0

    .line 357
    :cond_d
    const-string v0, "history"

    invoke-virtual {p3, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_e

    .line 359
    sget-object v0, Lcom/glympse/android/glympse/Glympse$EViews;->History:Lcom/glympse/android/glympse/Glympse$EViews;

    iput-object v0, p0, Lcom/glympse/platform/common/UrlParser;->m_eView:Lcom/glympse/android/glympse/Glympse$EViews;

    goto :goto_1

    .line 361
    :cond_e
    const-string v0, "favorites"

    invoke-virtual {p3, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_c

    .line 363
    sget-object v0, Lcom/glympse/android/glympse/Glympse$EViews;->Favorites:Lcom/glympse/android/glympse/Glympse$EViews;

    iput-object v0, p0, Lcom/glympse/platform/common/UrlParser;->m_eView:Lcom/glympse/android/glympse/Glympse$EViews;

    goto :goto_1

    .line 370
    :cond_f
    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "UrlParser warning - Unknown name/value pair: ["

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "]["

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "]=["

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "]"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/glympse/platform/common/Helpers;->Log(Ljava/lang/String;)V

    goto :goto_1
.end method

.method public ParseParameter(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 5
    .parameter "strName"
    .parameter "strValue"

    .prologue
    const/4 v4, 0x1

    .line 263
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v3

    sub-int v2, v3, v4

    .line 264
    .local v2, nStart:I
    move v1, v2

    .line 266
    .local v1, nCur:I
    :goto_0
    if-gez v1, :cond_1

    .line 277
    :cond_0
    if-ge v1, v2, :cond_2

    .line 279
    const/4 v3, 0x0

    add-int/lit8 v4, v1, 0x1

    invoke-static {p1, v3, v4}, Lcom/glympse/platform/common/Helpers;->SubstrEnd(Ljava/lang/String;II)Ljava/lang/String;

    move-result-object v3

    add-int/lit8 v4, v1, 0x1

    invoke-static {p1, v4}, Lcom/glympse/platform/common/Helpers;->Substr(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Lcom/glympse/platform/common/Helpers;->ParseInt(Ljava/lang/String;)I

    move-result v4

    invoke-virtual {p0, v3, v4, p2}, Lcom/glympse/platform/common/UrlParser;->ParseParameter(Ljava/lang/String;ILjava/lang/String;)Z

    move-result v3

    .line 283
    :goto_1
    return v3

    .line 269
    :cond_1
    invoke-virtual {p1, v1}, Ljava/lang/String;->charAt(I)C

    move-result v0

    .line 270
    .local v0, c:C
    const/16 v3, 0x30

    if-lt v0, v3, :cond_0

    const/16 v3, 0x39

    if-gt v0, v3, :cond_0

    .line 266
    add-int/lit8 v1, v1, -0x1

    goto :goto_0

    .line 283
    .end local v0           #c:C
    :cond_2
    invoke-virtual {p0, p1, v4, p2}, Lcom/glympse/platform/common/UrlParser;->ParseParameter(Ljava/lang/String;ILjava/lang/String;)Z

    move-result v3

    goto :goto_1
.end method

.method public ParseQueryString(Ljava/lang/String;)Z
    .locals 7
    .parameter "strQueryString"

    .prologue
    .line 141
    const/4 v0, 0x0

    .line 144
    .local v0, fResult:Z
    const/16 v5, 0x26

    invoke-static {p1, v5}, Lcom/glympse/platform/common/Helpers;->StrSplit(Ljava/lang/String;C)Lcom/glympse/platform/GVector$Strings;

    move-result-object v2

    .line 147
    .local v2, listParams:Lcom/glympse/platform/GVector$Strings;,"Lcom/glympse/platform/GVector$Strings;"
    invoke-virtual {v2}, Lcom/glympse/platform/GVector$Strings;->elements()Ljava/util/Enumeration;

    move-result-object v1

    .local v1, iter:Ljava/util/Enumeration;
    :goto_0
    invoke-interface {v1}, Ljava/util/Enumeration;->hasMoreElements()Z

    move-result v5

    if-nez v5, :cond_0

    .line 168
    return v0

    .line 149
    :cond_0
    invoke-interface {v1}, Ljava/util/Enumeration;->nextElement()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/String;

    .line 152
    .local v4, strParam:Ljava/lang/String;
    const/16 v5, 0x3d

    invoke-virtual {v4, v5}, Ljava/lang/String;->indexOf(I)I

    move-result v3

    .line 156
    .local v3, nEquals:I
    if-gez v3, :cond_1

    .line 158
    invoke-static {v4}, Lcom/glympse/platform/common/Helpers;->UrlDecode(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {p0, v5}, Lcom/glympse/platform/common/UrlParser;->ParseParameter(Ljava/lang/String;)Z

    move-result v5

    or-int/2addr v0, v5

    goto :goto_0

    .line 164
    :cond_1
    const/4 v5, 0x0

    invoke-static {v4, v5, v3}, Lcom/glympse/platform/common/Helpers;->SubstrEnd(Ljava/lang/String;II)Ljava/lang/String;

    move-result-object v5

    add-int/lit8 v6, v3, 0x1

    invoke-static {v4, v6}, Lcom/glympse/platform/common/Helpers;->Substr(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v6

    invoke-static {v6}, Lcom/glympse/platform/common/Helpers;->UrlDecode(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {p0, v5, v6}, Lcom/glympse/platform/common/UrlParser;->ParseParameter(Ljava/lang/String;Ljava/lang/String;)Z

    move-result v5

    or-int/2addr v0, v5

    goto :goto_0
.end method

.method public ParseUrls(Ljava/lang/String;Z)Z
    .locals 10
    .parameter "strBuffer"
    .parameter "fAllowMultipleUrls"

    .prologue
    const/16 v9, 0x20

    .line 39
    const/4 v1, 0x0

    .line 42
    .local v1, fResult:Z
    invoke-static {p1}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_0

    .line 44
    const/4 v8, 0x0

    .line 135
    :goto_0
    return v8

    .line 47
    :cond_0
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v6

    .line 50
    .local v6, nLength:I
    const/4 v3, 0x0

    .line 51
    .local v3, nCur:I
    :goto_1
    if-lt v3, v6, :cond_2

    :cond_1
    move v8, v1

    .line 135
    goto :goto_0

    .line 54
    :cond_2
    const-string v8, "glympse.com/"

    invoke-virtual {p1, v8, v3}, Ljava/lang/String;->indexOf(Ljava/lang/String;I)I

    move-result v2

    .line 55
    .local v2, nCom:I
    const-string v8, "glympse.me/"

    invoke-virtual {p1, v8, v3}, Ljava/lang/String;->indexOf(Ljava/lang/String;I)I

    move-result v7

    .line 56
    .local v7, nMe:I
    const-string v8, "glympse:"

    invoke-virtual {p1, v8, v3}, Ljava/lang/String;->indexOf(Ljava/lang/String;I)I

    move-result v5

    .line 59
    .local v5, nGlympse:I
    if-ltz v2, :cond_8

    if-ltz v7, :cond_3

    if-le v7, v2, :cond_8

    :cond_3
    if-ltz v5, :cond_4

    if-le v5, v2, :cond_8

    .line 61
    :cond_4
    add-int/lit8 v3, v2, 0xc

    .line 83
    :goto_2
    if-lt v3, v6, :cond_b

    .line 95
    :cond_5
    move v4, v3

    .line 96
    .local v4, nEnd:I
    if-eqz p2, :cond_e

    .line 98
    :goto_3
    if-lt v4, v6, :cond_d

    .line 126
    :cond_6
    if-le v4, v3, :cond_7

    .line 128
    invoke-static {p1, v3, v4}, Lcom/glympse/platform/common/Helpers;->SubstrEnd(Ljava/lang/String;II)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {p0, v8}, Lcom/glympse/platform/common/UrlParser;->ParseQueryString(Ljava/lang/String;)Z

    move-result v8

    or-int/2addr v1, v8

    .line 132
    :cond_7
    move v3, v4

    goto :goto_1

    .line 65
    .end local v4           #nEnd:I
    :cond_8
    if-ltz v7, :cond_a

    if-ltz v5, :cond_9

    if-le v5, v7, :cond_a

    .line 67
    :cond_9
    add-int/lit8 v3, v7, 0xb

    goto :goto_2

    .line 71
    :cond_a
    if-ltz v5, :cond_1

    .line 73
    add-int/lit8 v3, v5, 0x8

    .line 83
    goto :goto_2

    .line 85
    :cond_b
    invoke-virtual {p1, v3}, Ljava/lang/String;->charAt(I)C

    move-result v0

    .line 86
    .local v0, c:C
    const/16 v8, 0x2f

    if-eq v8, v0, :cond_c

    const/16 v8, 0x3f

    if-ne v8, v0, :cond_5

    .line 90
    :cond_c
    add-int/lit8 v3, v3, 0x1

    goto :goto_2

    .line 100
    .end local v0           #c:C
    .restart local v4       #nEnd:I
    :cond_d
    invoke-virtual {p1, v4}, Ljava/lang/String;->charAt(I)C

    move-result v0

    .line 101
    .restart local v0       #c:C
    if-le v0, v9, :cond_6

    .line 105
    add-int/lit8 v4, v4, 0x1

    goto :goto_3

    .line 113
    .end local v0           #c:C
    :cond_e
    move v4, v6

    .line 114
    :goto_4
    if-le v4, v3, :cond_6

    .line 116
    const/4 v8, 0x1

    sub-int v8, v4, v8

    invoke-virtual {p1, v8}, Ljava/lang/String;->charAt(I)C

    move-result v0

    .line 117
    .restart local v0       #c:C
    if-gt v0, v9, :cond_6

    .line 121
    add-int/lit8 v4, v4, -0x1

    goto :goto_4
.end method
